<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function logout(){
		var f=confirm("로그아웃하시겠습니까?");
		if(f)
			location.href="${pageContext.request.contextPath }/member.do?command=logout";
	}
	function modify(){
		location.href="${pageContext.request.contextPath }/member_view/before_modify.jsp";
	}
</script>
</head>
<body>
<c:choose>
<c:when test="${sessionScope.vo==null }">
<a href="${pageContext.request.contextPath }/member_view/hello_register.jsp">
<img src="${pageContext.request.contextPath }/img/register.PNG"></a>
<a href="${pageContext.request.contextPath }/member.do?command=loginForm">
<img src="${pageContext.request.contextPath }/img/btn_login.PNG"></a>
</c:when>
<c:otherwise>
<a onclick="modify()" style="cursor:pointer;cursor:hand">${sessionScope.vo.name } 님</a>
<a href="javascript:logout()">
<img src="${pageContext.request.contextPath }/img/login/logout.png"></a>
</c:otherwise>
</c:choose>
</body>
</html>